home *** CD-ROM | disk | FTP | other *** search
/ PC Plus SuperCD (UK) 1998 August / PC Plus SuperCD 50a Issue 142 (CD142a) (August 1998).iso / trial / demon / TURNPIKE.1 / CLASSES.ZIP / JAVA / LANG / Class.class (.txt) < prev    next >
Encoding:
Java Class File  |  1997-04-14  |  893 b   |  25 lines

  1. package java.lang;
  2.  
  3. public final class Class {
  4.    private Class() {
  5.    }
  6.  
  7.    public static native Class forName(String var0) throws ClassNotFoundException;
  8.  
  9.    public native Object newInstance() throws InstantiationException, IllegalAccessException;
  10.  
  11.    public native String getName();
  12.  
  13.    public native Class getSuperclass();
  14.  
  15.    public native Class[] getInterfaces();
  16.  
  17.    public native ClassLoader getClassLoader();
  18.  
  19.    public native boolean isInterface();
  20.  
  21.    public String toString() {
  22.       return (this.isInterface() ? "interface " : "class ") + this.getName();
  23.    }
  24. }
  25.